<?php
/**
 * hlpValidateルールセット reinput型チェック
 */
include_once (dirname(__FILE__).'/default.php');

class Validate_check_ReInput extends Validate_Rules_Default {

	function call () {
		$Target = $this->Rules[$this->Rule['target']];
		if (!isset ($this->SrcData[$this->Key])) $this->SrcData[$this->Key] = null;
		
		if ($this->SrcData[$this->Key] != $this->DstData[$this->Rule['target']]) {
			$this->ErrMsg[] = $Target['string']. 'と'.$this->Rule['string'].'の値が異なります。';
			return false;
		}
		return true;
	}
	
}
?>